﻿using Tetris.Game.ControlsBase.Common;

namespace Tetris.Game.Common.TetrisCenter.TetrisBase
{
    [Shape(true, ShapeType.L)]
    public class LBlockShape : BlockShapeBase
    {
        public LBlockShape()
        {
            TetrisShapeType = ShapeType.L;

        }
        public override void CreationBlock()
        {
            base.CreationBlock();
            int x = (Column - 3) >> 1;
            base.CreationBlock(t =>
            {
                t.PositionX = x;
                t.PositionY = 0;
            });
            for (int i = 0; i < 3; i++)
            {
                base.CreationBlock(t =>
                {
                    t.PositionX = x + i;
                    t.PositionY = 1;
                });
            }
        }
    }
}
